home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
lang
/
lisp
/
stk-3.002
/
stk-3
/
STk-3.1
/
Contrib
/
STk-wtour
/
lessons
/
scale2.stk
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-12-12
|
424 b
|
15 lines
;; A scale widget with options
(define (display-value n)
(format #t "Flow 1 = ~A\n" n))
(scale '.s1 :label "Flow 1" :from -1000 :to 1000 :orient "horizontal"
:command display-value)
(pack .s1)
;; We could avoid the display-value definition by doing
(scale '.s2 :label "Flow 2" :from -1000 :to 1000 :orient "horizontal"
:command (lambda (n)
(format #t "Flow 2 = ~A\n" n)))
(pack .s2)